package com.gitee.cirnochat.chatai.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName ai_chat_usage_log
 */
@TableName(value ="ai_chat_usage_log")
@Data
public class AiChatUsageLog implements Serializable {
    /**
     * 记录ID
     */
    @TableId(value = "record_id")
    private String recordId;

    /**
     * 请求ID
     */
    @TableField(value = "request_id")
    private String requestId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 会话ID
     */
    @TableField(value = "session_id")
    private String sessionId;

    /**
     * 状态摘要
     */
    @TableField(value = "status_summary")
    private String statusSummary;

    /**
     * 状态摘要标题
     */
    @TableField(value = "status_summary_title")
    private String statusSummaryTitle;

    /**
     * 耗时（毫秒）
     */
    @TableField(value = "elapsed")
    private Integer elapsed;

    /**
     * Token数量
     */
    @TableField(value = "token_count")
    private Integer tokenCount;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}